package com.ryan.day02.demo02;

public class DemoArray {
    public static void main(String[] args) {
        Person[] array = new Person[2];
        Person one =new Person("lulu",25);
        Person two = new Person("linlin",26);
        array[0] = one;
        array[1] = two;

        System.out.println(array[0].getName()+array[0].getAge());
    }

}
